home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / swriter.jar / text / swriter / 01 / 04090007.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  10.2 KB  |  121 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Special tags</title><meta name="filename" content="text/swriter/01/04090007"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:3cm;}
  8.         span.Tabelle1B{
  9.                 width:14.997cm;}
  10.         td.Tabelle1A1{
  11.                 }
  12.         td.Tabelle1B1{
  13.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  14.         td.Tabelle1A2{
  15.                 }
  16.         td.Tabelle1B2{
  17.                 }
  18.         table.Tabelle2{
  19.                 }
  20.         span.Tabelle2A{
  21.                 width:1.499cm;}
  22.         span.Tabelle2B{
  23.                 width:16.498cm;}
  24.         tr.Tabelle21{
  25.                 }
  26.         td.Tabelle2A1{
  27.                 }
  28.         table.Tabelle3{
  29.                 }
  30.         span.Tabelle3A{
  31.                 width:3.889cm;}
  32.         span.Tabelle3B{
  33.                 width:14.108cm;}
  34.         td.Tabelle3A1{
  35.                 }
  36.         td.Tabelle3B1{
  37.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  38.         td.Tabelle3A2{
  39.                 }
  40.         td.Tabelle3B2{
  41.                 }
  42.         p.P1{
  43.                 }
  44.         p.P2{
  45.                 }
  46.         span.T1{
  47.                 font-weight:bold;}
  48.         span.fr1{
  49.                 }
  50.         </style></head><body>
  51.    
  52.    
  53.    <p class="P1"/>
  54.    <p class="Head1"><help:key-word value="tags; in %PRODUCTNAME Writer" tag="kw67689_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="%PRODUCTNAME Writer; tags" tag="kw67689_7" xmlns:help="http://openoffice.org/2000/help"/><a name="sdtags"/> <help:link Id="67689" xmlns:help="http://openoffice.org/2000/help">Special tags</help:link></p>
  55.    <p class="Paragraph">Here, you will find an explanation of special tags used for fields.<a name="ende"/></p>
  56.    <p class="Paragraph"><help:key-word value="fields; HTML import and export" tag="kw67689_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="HTML; fields" tag="kw67689_5" xmlns:help="http://openoffice.org/2000/help"/>When you create HTML documents with fields in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer, they are converted into special tags for the HTML source text. These tags are not defined in HTML format since they take specific functions of <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> into account, the fields in this case. When importing and exporting HTML documents, you should remember that there are special formats for fields only defined in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>.</p>
  57.    <p class="Paragraph">The tag for a <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer field is <SDFIELD>. The opening tag contains the options for specifying the field type, the format, and the special field. The format of a field tag which is recognized by the HTML filter depends on the special field.</p>
  58.    <help:to-popup Eid="datumuhrzeit" xmlns:help="http://openoffice.org/2000/help">
  59.    <p class="Head2"><help:key-word value="date/time fields; HTML" tag="kw67689_4"/><help:key-word value="HTML; date/time fields" tag="kw67689_3"/>Document fields of the date or time type</p>
  60.    <p class="Paragraph">For the document fields <span class="T1">Date</span> and <span class="T1">Time</span>, the value of the TYPE option is specified as DATETIME. The SDNUM option specifies the field format. Here the distinction between date and time fields is also being made through the format specified (e.g. DD:MM:YY or HH:MM:SS).</p>
  61.    <p class="Paragraph">For fixed date and time fields, the date or the time is specified via the SDVAL option. The existence of this option also determines whether the field is a fixed field or not.</p>
  62.    <p class="Paragraph">The following table shows through examples which formats for date and clock time fields are interpreted correctly by the HTML filter:</p>
  63.    <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  64.        <p class="TableHead">Fields</p>
  65.       </span></th><th class="Tabelle1B1" style="text-align:left;"><span class="Tabelle1B">
  66.        <p class="TableHead"><help:productname>%PRODUCTNAME</help:productname> Tag</p>
  67.       </span></th></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  68.       <p class="TextInTable">Date is fixed</p>
  69.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  70.       <p class="TextInTable"><SDFIELD TYPE=DATETIME SDVAL="35843,4239988426" SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD></p>
  71.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  72.       <p class="TextInTable">Date is variable</p>
  73.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  74.       <p class="TextInTable"><SDFIELD TYPE=DATETIME SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD></p>
  75.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  76.       <p class="TextInTable">Time is fixed</p>
  77.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  78.       <p class="TextInTable"><SDFIELD TYPE=DATETIME SDVAL="35843,4240335648" SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD></p>
  79.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  80.       <p class="TextInTable">Time is variable</p>
  81.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  82.       <p class="TextInTable"><SDFIELD TYPE=DATETIME SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD></p>
  83.      </span></td></tr></table>
  84.    </help:to-popup>
  85.    <table><tr class="Tabelle21"><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  86.        <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  87.       </span></th><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2B">
  88.        <p class="Paragraph">In previous versions of <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>, the formats for date and time fields differ from the ones specified here. The old format is still supported by the import. However, the new format is always exported so that fields are no longer created in older Office versions.</p>
  89.        <p class="Paragraph">Examples of the 4.0 format:</p>
  90.        <p class="Paragraph"><SDFIELD TYPE=DATE FORMAT=SSYS VALUE="19980217">17/02/98</SDFIELD></p>
  91.        <p class="Paragraph"><SDFIELD TYPE=TIME FORMAT=SYS VALUE="10083682">10:08:36</SDFIELD></p>
  92.       </span></th></tr></table>
  93.    <p class="Paragraph"/>
  94.    <help:to-popup Eid="dokumentinfo" xmlns:help="http://openoffice.org/2000/help">
  95.    <p class="Head2"><help:key-word value="DocInformation fields; HTML" tag="kw67689_2"/>DocInformation fields</p>
  96.    <p class="Paragraph">In the DocInformation fields, the value of the TYPE option is specified as DOCINFO. The SUBTYPE option indicates the specific field type. The field of the type Created therefore has the SUBTYPE option CREATE; the field type Modified has the CHANGE option. Date and time fields are marked by the FORMAT option DATE or TIME; the format of these fields is specified by the SDNUM option. In addition, there is the SDFIXED option, which means that the content of the DocInformation field is fixed.</p>
  97.    <p class="Paragraph">If a fixed field does not stand for a date or time, the text between the opening field tag, <SDFIELD>, and the closing tag, </SDFIELD>, is used as the contents of the field. For date and time fields, the value of the field is specified in a SDVAL option.</p>
  98.    <p class="P2">Examples:</p>
  99.    <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  100.        <p class="TableHead">Fields</p>
  101.       </span></th><th class="Tabelle3B1" style="text-align:left;"><span class="Tabelle3B">
  102.        <p class="TableHead"><help:productname>%PRODUCTNAME</help:productname> Tag</p>
  103.       </span></th></tr><tr class=""><td class="Tabelle3A2" style="text-align:left;"><span class="Tabelle3A">
  104.       <p class="TextInTable">Description (fixed content)</p>
  105.      </span></td><td class="Tabelle3B2" style="text-align:left;"><span class="Tabelle3B">
  106.       <p class="TextInTable"><SDFIELD TYPE=DOCINFO SUBTYPE=COMMENT SDFIXED>Description</SDFIELD></p>
  107.      </span></td></tr><tr class=""><td class="Tabelle3A2" style="text-align:left;"><span class="Tabelle3A">
  108.       <p class="TextInTable">Creation date</p>
  109.      </span></td><td class="Tabelle3B2" style="text-align:left;"><span class="Tabelle3B">
  110.       <p class="TextInTable"><SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=DATE SDNUM="1031;1031;QQ ??YY??JJ">1. Quarter 98</SDFIELD></p>
  111.      </span></td></tr><tr class=""><td class="Tabelle3A2" style="text-align:left;"><span class="Tabelle3A">
  112.       <p class="TextInTable">Creation time (fixed content)</p>
  113.      </span></td><td class="Tabelle3B2" style="text-align:left;"><span class="Tabelle3B">
  114.       <p class="TextInTable"><SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=TIME SDVAL="0" SDNUM="1031;1031;HH:MM:SS AM/PM" SDFIXED>03:58:35 PM</SDFIELD></p>
  115.      </span></td></tr><tr class=""><td class="Tabelle3A2" style="text-align:left;"><span class="Tabelle3A">
  116.       <p class="TextInTable">Modification date</p>
  117.      </span></td><td class="Tabelle3B2" style="text-align:left;"><span class="Tabelle3B">
  118.       <p class="TextInTable"><SDFIELD TYPE=DOCINFO SUBTYPE=CHANGE FORMAT=DATE SDNUM="1031;1031;NN DD MMM, YY">Mo 23 Feb, 98</SDFIELD></p>
  119.      </span></td></tr></table>
  120.    </help:to-popup>
  121.   </body></html>